package com.pretty.test.controller.pets.message.wrapper;


import com.pretty.test.controller.pets.message.vo.MessagePageVO;
import com.pretty.test.entity.PetsMessage;
import com.pretty.test.utils.otherutils.BeanUtil;
import com.pretty.test.utils.wrapper.BaseEntityWrapper;

import java.util.Objects;

public class MessagePageWrapper extends BaseEntityWrapper<PetsMessage , MessagePageVO> {
    public static MessagePageWrapper build(){
        return new MessagePageWrapper();
    }

    @Override
    public MessagePageVO entityVO(PetsMessage entity) {
        MessagePageVO vo = Objects.requireNonNull(BeanUtil.copy(entity, MessagePageVO.class));
        return vo;
    }
}
